import request from "@/utils/request.js"

// 学生创建订单
export function createByStudentWap(data) {
  return request({
    url: '/order/wapCreate',
    method: 'post',
    data
  })
}

// 学生获取订单列表
export function getOrderPageByStudent(data) {
  return request({
    url: '/order/pages',
    method: 'get',
    data
  })
}

// 根据订单编号获取订单信息
export function getOrderByCode(code) {
  return request({
    url: '/order/' + code,
    method: 'get'
  })
}

// 根据订单编号取消订单
export function cancelOrderByCode(code) {
  return request({
    url: '/order/cancel/' + code,
    method: 'get'
  })
}